﻿@model ElCharro01.Models.Customer

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Customer</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cognome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cognome)
            @Html.ValidationMessageFor(model => model.Cognome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cellulare)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cellulare)
            @Html.ValidationMessageFor(model => model.Cellulare)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TelefonoFisso)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TelefonoFisso)
            @Html.ValidationMessageFor(model => model.TelefonoFisso)
        </div>

        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.Username)
        @Html.HiddenFor(model => model.Password)
        @Html.HiddenFor(model => model.Bonus)
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DomandaSegreta)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DomandaSegreta)
            @Html.ValidationMessageFor(model => model.DomandaSegreta)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RispostaSegreta)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RispostaSegreta)
            @Html.ValidationMessageFor(model => model.RispostaSegreta)
        </div>

        <p>
            <input type="submit" value="Salva Modifiche" />
        </p>
    </fieldset>
}
